package com.cskaoyan.mapper;

import com.cskaoyan.bean.*;
import com.cskaoyan.model.admin.vo.CatAndBrandVo2;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketCategoryMapper {
    long countByExample(MarketCategoryExample example);

    int deleteByExample(MarketCategoryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketCategory record);

    int insertSelective(MarketCategory record);

    List<MarketCategory> selectByExample(MarketCategoryExample example);

    MarketCategory selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketCategory record, @Param("example") MarketCategoryExample example);

    int updateByExample(@Param("record") MarketCategory record, @Param("example") MarketCategoryExample example);

    int updateByPrimaryKeySelective(MarketCategory record);

    int updateByPrimaryKey(MarketCategory record);


    List<MarketCategory> selectByLevel();

    List<MarketCategory> selectById(Integer id);

    void createMarketCategory(MarketCategory marketCategory);


    MarketCategory selectMarketCategoryById(Integer id);

    List<MarketCategory> selectByLl();


    void updateMarketCategory(MarketCategory marketCategory);

    void deleteMarketCategory(MarketCategory marketCategory);



    List<MarketCategory> selectByPid(Integer categoryId);

    List<PidBean> selectPid();

    List<CategoryListEntity> selectIdAndNameByGroupPid();

    List<ChildrenEntity> selectByChildrenEntity(CategoryListEntity categoryListEntity);

    List<CatAndBrandVo2.CategoryListBean> selectNameAndIdByPid();

    List<CatAndBrandVo2.CategoryListBean.ChildrenBean> selectChildrenBeanByPid(int value);

}